﻿using System;
using GC_RF.Site.Resources.Constants;

namespace GC_RF.Site.Models.Shared.DisplayTemplates
{
	public class PagerModel
	{
		#region Properties

		public int Count { get; set; }
		public int PageSize { get; set; }
		public int PageCount { get { return (int) Math.Ceiling(Count == 0 ? 1 : Count/(double) PageSize); } }
		public int PageNumber { get; set; }

		#endregion

		#region Constructors

		public PagerModel()
		{
			PageSize = UIHelper.NewsPageSize;
			PageNumber = 1;
		}

		#endregion
	}
}